package com.sdp.th.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 设备报警设置
 * </p>
 *
 * @author zsp
 * @since 2025-04-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("th_eq_alarm_set")
public class ThEqAlarmSet extends Model<ThEqAlarmSet> {

    private static final long serialVersionUID=1L;

    /**
     *  内码
     */
    @TableId("key_id")
    private String keyId;

    /**
     * 温度报警策略
     */
    @TableField("temperature_strategy")
    private String temperatureStrategy;
    
    /**
     * 湿度报警策略
     */
    @TableField("humidity_strategy")
    private String humidityStrategy;

    /**
     * 温度上限值
     */
    @TableField("temperature_upper_val")
    private BigDecimal temperatureUpperVal;

    /**
     * 温度下限值
     */
    @TableField("temperature_lower_val")
    private BigDecimal temperatureLowerVal;

    /**
     * 湿度上限值
     */
    @TableField("humidity_upper_val")
    private BigDecimal humidityUpperVal;

    /**
     * 湿度下限值
     */
    @TableField("humidity_lower_val")
    private BigDecimal humidityLowerVal;

    /**
     * 设备编码
     */
    @TableField("device_no")
    private String deviceNo;
    
    /**
     * 温度趋势时间
     */
    @TableField("temperature_trend_time")
    private BigDecimal temperatureTrendTime;
    
    /**
     * 温度趋势值
     */
    @TableField("temperature_trend_val")
    private BigDecimal temperatureTrendVal;
    
    /**
     * 湿度趋势时间
     */
    @TableField("humidity_trend_time")
    private BigDecimal humidityTrendTime;

    /**
     * 湿度趋势时间
     */
    @TableField("humidity_trend_val")
    private BigDecimal humidityTrendVal;
    
    @Override
    protected Serializable pkVal() {
        return this.keyId;
    }

}
